import Content from '@/sheep/layouts/content.vue';
import { request } from '@/sheep/request';
import { CRUD } from '@/sheep/request/crud';
const route = {
  path: 'settings',
  name: 'seller.admin.settings',
  component: Content,
  meta: {
    title: '门店设置',
  },
  children: [
    {
      path: 'teams',
      name: 'seller.admin.settings.teams',
      component: () => import('./teams/index.vue'),
      meta: {
        title: '服务团队',
      },
    }
  ],
};

const api = {
  teams: {
    list: (params) =>
      request({
        url: '/seller/admin/nurse/list',
        method: 'GET',
        params
      }),
    typeList: () =>
      request({
        url: '/seller/admin/nurse/type_list',
        method: 'GET',
      }),
    addNurse: (data) =>
      request({
        url: '/seller/admin/nurse',
        method: 'POST',
        data
      }),
    ...CRUD('/seller/admin/nurse',['add','detail', 'edit', 'delete'])

  }
};

export { route, api };
